package com.isdepci.project.carbon.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.isdepci.framework.aspectj.lang.annotation.Excel;
import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 碳交易对象 b_ccer_trade
 *
 * @author isdepci
 * @date 2025-03-29
 */
public class BCcerTrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 项目代码 */
//    //@Excel(name = "项目代码")
    private Long projectId;

    /** 名称 */
    @Excel(name = "名称")
    private String iname;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** CCER交易量 */
    @Excel(name = "CCER交易量")
    private BigDecimal ccerVolume;

    /** 碳排放量 */
    private BigDecimal carbonEmissions;

    /** 附件地址 */
//    //@Excel(name = "附件地址")
    private String accessoryUrl;

    /** 附件名称 */
//    //@Excel(name = "附件名称")
    private String accessoryName;

    public String getAccessoryName() {
        return accessoryName;
    }

    public void setAccessoryName(String accessoryName) {
        this.accessoryName = accessoryName;
    }

    public String getAccessoryUrl() {
        return accessoryUrl;
    }

    public void setAccessoryUrl(String accessoryUrl) {
        this.accessoryUrl = accessoryUrl;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getProjectId()
    {
        return projectId;
    }

    public String getIname() {
        return iname;
    }

    public void setIname(String iname) {
        this.iname = iname;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public void setCcerVolume(BigDecimal ccerVolume)
    {
        this.ccerVolume = ccerVolume;
    }

    public BigDecimal getCcerVolume()
    {
        return ccerVolume;
    }

    public BigDecimal getCarbonEmissions() {
        return carbonEmissions;
    }

    public void setCarbonEmissions(BigDecimal carbonEmissions) {
        this.carbonEmissions = carbonEmissions;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("ccerVolume", getCcerVolume())
            .toString();
    }
}
